home *** CD-ROM | disk | FTP | other *** search
/ The 640 MEG Shareware Studio 2 / The 640 Meg Shareware Studio CD-ROM Volume II (Data Express)(1993).ISO / clang / jcool01.zip / NT_STATE.C < prev    next >
C/C++ Source or Header  |  1992-08-20  |  967b  |  34 lines

  1. //
  2. // Copyright (C) 1991 Texas Instruments Incorporated.
  3. //
  4. // Permission is granted to any individual or institution to use, copy, modify,
  5. // and distribute this software, provided that this complete copyright and
  6. // permission notice is maintained, intact, in all copies and supporting
  7. // documentation.
  8. //
  9. // Texas Instruments Incorporated provides this software "as is" without
  10. // express or implied warranty.
  11. //
  12. // Updated: VDN 02/21/92 -- Separate NT_State which must be implemented once
  13. //
  14.  
  15. #include <cool/NT_State.h>
  16.  
  17. #include <cool/Pair.C>
  18. #include <cool/Stack.C>
  19.  
  20. // NT_State() -- Copy constructor
  21.  
  22. CoolNT_State::CoolNT_State (const CoolNT_State& s) {    
  23.   this->stack = s.stack;            
  24.   this->forward = s.forward;
  25. }
  26.  
  27. // operator = -- Overload assignment operator
  28.  
  29. CoolNT_State& CoolNT_State::operator= (const CoolNT_State& s) { 
  30.   this->stack = s.stack;            // Needs memberwise copy
  31.   this->forward = s.forward;
  32.   return *this;
  33. }
  34.